<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>cookie</title>
</head>
<body>
<%
Cookie[]cr=  request.getCookies();
for(int i=0;cr!=null&&i<cr.length;i++){
	out.print(cr[i].getName()+":"+cr[i].getValue()+"<br/>");
}
%>
<h1>
 <%=session.getId() %>
</h1>
</body>
</html>